					<?php $form = $this->beginWidget('lib.widgets.CActiveFormAdv', array(
							'action' => Yii::app()->createUrl('provide/index/register',array('type'=>'ProviderAccount')),
							'htmlOptions' => array(
								'enctype'=>"multipart/form-data"
							)
						))?>
							<table>
								<tr height="40">
									<td colspan="3"><h1>会员登录名和密码项</h1></td>
								</tr>
								<tr height="40">
									<td align="right">会员登录名：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td colspan="2">
										<?php echo $form->textField($model,'worker_name',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'worker_name')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">密码：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td colspan="2">
										<?php echo $form->passwordField($model,'worker_password',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'worker_password')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">再输一次密码：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td colspan="2">
										<?php echo $form->passwordField($model,'rePassword',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'rePassword')?>
									</td>
								</tr>
								<tr height="20">
									<td></td>
									<td></td>
									<td></td>
								</tr>
								<tr height="40">
									<td colspan="3"><h1>个人资料和联系方式</h1></td>
								</tr>
								<tr height="40">
									<td align="right">真实姓名：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td colspan="2">
										<?php echo $form->textField($model,'profile.realname',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'profile.realname')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">昵称：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td colspan="2">
										<?php echo $form->textField($model,'profile.nickname',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'profile.nickname')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">性别：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td colspan="2">
										<?php echo $form->radioButtonList($model,'profile.gender',array('1'=>'女士','2'=>'先生'),array('separator'=>''));?>
										<?php echo $form->error($model, 'profile.gender')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">您的职务：<span class="bh-ly-biaodan-tishi"><b>&nbsp;</b></td>
									<td colspan="2">
										<?php echo $form->textField($model,'profile.position',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'profile.position')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">所在部门：<span class="bh-ly-biaodan-tishi"><b>&nbsp;</b></td>
									<td colspan="2">
										<?php echo $form->textField($model,'profile.dept',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'profile.dept')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">固定电话：<span class="bh-ly-biaodan-tishi"><b>&nbsp;</b></td>
									<td colspan="2">
										<?php echo $form->textField($model,'profile.tel',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'profile.tel')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">手机：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td colspan="2">
										<?php echo $form->textField($model,'profile.mobile',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'profile.mobile')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">常用通讯地址：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td colspan="2">
										<?php echo $form->textField($model,'profile.address',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'profile.address')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">邮编：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td colspan="2">
										<?php echo $form->textField($model,'profile.zipcode',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'profile.zipcode')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">电子邮件：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td colspan="2">
										<?php echo $form->textField($model,'profile.email',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'profile.email')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">网址：<span class="bh-ly-biaodan-tishi"><b>&nbsp;</b></td>
									<td colspan="2">
										<?php echo $form->textField($model,'profile.website',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'profile.website')?>
									</td>
								</tr>
								<tr height="40">
									<td colspan="3"><h1>企业相关资料</h1></td>
								</tr>
								<tr height="40">
									<td align="right">企业名称：<span class="bh-ly-biaodan-tishi"><b>*</b></td>
									<td colspan="2">
										<?php echo $form->textField($model,'info.name',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'info.name')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">企业地址：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td>
										<?php echo $form->textField($model,'info.address',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'info.address')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">供货类型：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td colspan="2">
										<?php echo $form->dropDownList($model, 'info.category_id',
										Yii::app()->enum->options('goods.category'),
										array(
											'class'=>'bh-xf-ly-select2',
										))?>
										<?php echo $form->error($model, 'info.category_id');?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">企业电话：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td>
										<?php echo $form->textField($model,'info.tel',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'info.tel')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">工商注册码：<span class="bh-ly-biaodan-tishi"><b>*</b></td>
									<td colspan="2">
										<?php echo $form->textField($model,'info.register_code',array(
											'class'=>'bh-textW'
										))?>
										<?php echo $form->error($model, 'info.register_code')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">营业执照：<span class="bh-ly-biaodan-tishi"><b>*</b></td>
									<td colspan="2">
										<?php echo $form->fileField($model,'info.business_license')?>
										<?php echo $form->error($model, 'info.business_license')?>
									</td>
								</tr>
								<tr height="40">
									<td align="right">企业简介：<span class="bh-ly-biaodan-tishi"><b>&nbsp;</b></td>
									<td colspan="2">
										<?php echo $form->textArea($model,'info.desc',array(
											'class'=>'bh-textW',
											'style' => 'height:150px;width:350px;'
										))?>
										<?php echo $form->error($model, 'info.desc')?>
									</td>
								</tr>
								<tr height="40" style='display:none'>
									<td align="right">验证码：<span class="bh-ly-biaodan-tishi"><b>*</b></span></td>
									<td colspan="2">
										<?php echo $form->textField($model,'verifyCode',array(
											'class'=>'bh-textWS'
										))?>
										<span class="bh-ly-biaodan-tishi">
										<?php $this->widget('CCaptcha', array(
			                            		'showRefreshButton' => false,
			                            		'clickableImage'=> true,
			                          			'imageOptions'=>array(
														'alt'=>'点击换图',
														'title'=>'点击换图',
														'style'=>'cursor:pointer',
												 		'id' => 'imgCCaptcha',
					 									 	),
					                            	)
					                            );
					                            Yii::app()->clientScript->registerScript('clickCCaptcha','$(document).ready(function(){$("#imgCCaptcha").click()})');
			                            ?>
										<a id="seeno">看不清 换一张</a>
										<?php echo $form->error($model, 'verifyCode')?>
										<script>
											$("#seeno").click(function(){
												$("#imgCCaptcha").click();
											});
										</script>
										</span>
									</td>
								</tr>
								<tr height="40">
									<td colspan="3" align="center">
										<?php echo CHtml::submitButton('注册',array(
											'class'=>'bh-ly-jj-agree_sub bh-mTop20 bh-strong',
											'name'=>'agree_submit',
											'style'=>'margin-left:0',
										));?>
									</td>
								</tr>
							</table>
						<?php $this->endWidget()?>